﻿<Page x:Class="PresentationProject.Pages.GeographyClass.ClassPage3"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local ="clr-namespace:PresentationProject"
      mc:Ignorable="d" 
      d:DesignHeight="768" d:DesignWidth="1366"
	Title="ClassPage3" Background="Black">
    <Grid>
        <Canvas>
            <local:ImageObject x:Name="earthBackground" Source="/Resources/Images/earthmap.jpg" Height="800" Visibility="Visible" Canvas.Left="-100" />
            <local:ImageObject x:Name="Africa"  Visibility="Visible" Source="/Resources/Images/Africa.png" Width="310" Height="330"
                              MinWidth="310" MinHeight="330" MaxWidth="310" MaxHeight="330" Canvas.Left="620" Canvas.Top="230"/>
            <local:PlateImage x:Name="SouthAmerica" Visibility="Visible" Source="/Resources/Images/SouthAmerica.png" Width="214" Height="310"
                              MinWidth="214" MinHeight="310" MaxWidth="180" MaxHeight="260" RenderTransformOrigin="0.5,0.5" Canvas.Top="340" Canvas.Left="331">
                <local:PlateImage.RenderTransform>
                    <RotateTransform Angle="0" />
                </local:PlateImage.RenderTransform>
                <local:PlateImage.Triggers>
                    <EventTrigger RoutedEvent="Image.MouseDown">
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation x:Name="DoubleAnimation1" Storyboard.TargetName="earthBackground" Storyboard.TargetProperty="Opacity"
                                                 To="0.0" Duration="0:0:3" Completed="DoubleAnimation1_Completed"/>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </local:PlateImage.Triggers>
            </local:PlateImage>
        </Canvas>
    </Grid>
</Page>
